package cn.zyq.ykb.controller.tk;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.ry.util.poi.ExcelUtil;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.tk.FeedBack;
import cn.zyq.ykb.service.tk.FeedBackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 反馈Controller
 *
 * @author SystemAuth
 * @date 2023-10-20
 */

@RestController(value = "MgtFeedBackController")
@RequestMapping("/api/feedBack")
@Api(tags = "反馈接口")
public class FeedBackController extends BaseController {

    @Autowired
    private FeedBackService feedBackService;

    /**
     * 新增反馈
     */
    @ApiOperation(value = "新增")
    @Log(title = "反馈", businessType = BusinessType.INSERT)
    @PostMapping
    public Object add(@RequestBody FeedBack feedBack) {
        return this.feedBackService.insertFeedBack(feedBack);
    }

}
